package com.fengke.cn.yejian11.impls;

import com.fengke.cn.yejian11.javabean.TrainInfo;
import com.fengke.cn.yejian11.javabean.Traindown;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/1 0001.
 */

public interface TrainImpls {
    /**
     * 训练列表
    * */
    @POST("lists/mod/train/")
    Call<List<Traindown>> getTrainList(@Query("page") int page);
    /**
     * 线下级别训练列表
     * */
    @POST("lists/mod/train/")
    Call<List<Traindown>> getTrainDegreeList(@Query("Degree") int Degree);
    /**
     * 线下级别训练列表
     * http://172.24.10.175/workout/api.php/get/mod/train/id/1
     * */
    @POST("get/mod/train/")
    Call<TrainInfo> getTrainInfo(@Query("id") String  id);

    /**
     * url:http://172.24.10.175/workout/api.php/create/mod/signtrain/
     * participantname/郑俊生/
     * train_id/3/
     * participanttel/13889618807/
     * adultnum/1/
     * paytype/1/
     * pay/330/
     * paynotice/pppppp/
     * userid/19/
     * SessionID/pf2cmg5jk9p24f2mv1kjf55bo3

     * @return
     */
    @POST("create/mod/signtrain/")
    Call<Integer> joinTrain(@Query("participantname") String participantname,
                            @Query("train_id") String train_id,
                            @Query("participanttel") String participanttel,
                            @Query("adultnum") String adultnum,
                            @Query("paytype") String paytype,
                            @Query("pay") String pay,
                            @Query("paynotice") String paynotice,
                            @Query("userid") String userid,
                            @Query("SessionID") String SessionID);
}
